package com.yuxi.service;

import com.yuxi.mapper.RedpackeMapper;
import com.yuxi.model.Red;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by yuxi on 16/11/7.
 */
@Service
public class RedService {
@Autowired
    private RedpackeMapper redpackeMapper;

    public void update(Red red) {
        redpackeMapper.update(red);
    }
    public void insert(Red red) {
        redpackeMapper.insert(red);
    }
}
